<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Dungeon</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <script src="./lib/prototype.js" type="text/javascript"></script>
  <script type="text/javascript" language="javascript">
  // <![CDATA[

var dungeon_width = 80;
var dungeon_height = 40;

dungeon = new Array(dungeon_height);
for (j=0; j < dungeon_height; j++) {
   dungeon[j] = new Array(dungeon_width)
   for (i=0; i < dungeon_width; i++) {
     dungeon[j][i] = '.';
   }
}

function main() {
  dungeon.each(function(x) {
    var elt = document.createElement('code');
    elt.appendChild(document.createTextNode(x.join('')));
    $('main').appendChild(elt);
    $('main').appendChild(document.createElement('br'));
  });
}

window.onload = main;
  // ]]>
  </script>
</head>
<body>
<div id="main"></div>
</body>
</html>
